package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.component.design.Button;

public interface IButtonDao {
	public Button queryById(long id);

	public Button queryByName(String name);

	public Button queryByCode(String code, long projectId);
	
	public List<Button> queryByList();
	
	public void save(Button button);

	public Button update(Button button);

	public void deleteButton(Button button);
	
	public List<Button> queryByProject(long projectId);

	public Button queryByProjectAndName(long projectId, String name);
}
